﻿[[title="岗位管理"]]

<script type="text/javascript" language="javascript">
    window.onload = function () {
        wmsCommon.setTreeContentStyle();
    }
    function wmsTreeOnClick(e, treeId, treeNode) {
        var wbscode = treeNode.wbs; //wbscode
        var id = treeNode.key;    //id
        var href = "";
        href = "../model.aspx?model=roleInfo&temp=role_list&con=departWBS like '" + wbscode + "%'";
        var pc = parent.document.getElementsByName("deptRoleContent");
        pc[0].src = href;
    }

    function changeWindowSize() {
        wmsCommon.setTreeDivStyle("treeDiv", 1, 30);
    }

    $(function () {
        wmsCommon.setTreeDivStyle("treeDiv", 1, 30);
    });
</script>
<!--tree content start -->
<div id="treeDiv" style="text-align: center; ">
$dataContext.CreateControl("displayType=tree;data=wmsql(select wbscode as [key],departName as [name],departName as [text],wbsCode from departments);")
</div>